package org.example.springboot;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author 莫磊
 * @date 2025/8/15
 * @description 在springBoot中默认只扫描入口同级目录下的包，如果需要扫描其他包下的类，
 *              需要添加@ComponentScan注解
 */
@SpringBootApplication
@ComponentScan("org.example")
public class SpringBoot3Application {
    public static void main(String[] args) {
        SpringApplication.run(SpringBoot3Application.class, args);
    }
}